const util = require('util');
const Base = require('./base');

function Sub() {
  if (!(this instanceof Sub)) {
    return new Sub();
  }

  Base.call(this);

  this.name = 'Sub';
}
util.inherits(Sub, Base);

Sub.prototype.printName = function() {
  this.printText(`Name is ${this.name}.`);
}

module.exports = Sub;
